import Vue from 'vue'
import App from './App.vue'
import router from './router'
import 'animate.css'
// import axios from 'axios'
if (process.env.NODE_ENV === 'development') {
  Vue.prototype.$pre = 'http://localhost:2000'
} else {
  Vue.prototype.$pre = ''
}
// 1.重置css
import './assets/css/reset.css'
import "./assets/css/iconfont.css"
import "./assets/css/iconfont2.css"
//UI框架
import Vant from 'vant';
import 'vant/lib/index.css';

Vue.use(Vant);
//2.rem.js
import './assets/js/rem'
//3.过滤器
import './filters/index'
//4.component
import {commonComponents} from './components/index'
Vue.use(commonComponents)

Vue.config.productionTip = false
// Vue.prototype.axios =axios
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
